package com.app.OOS.controller;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;



@Controller
public class LoginController {
	

	@RequestMapping("/Login")
	public String Login() {
		return "/login";
	}
	
	@RequestMapping("/Student")
	public String Login1(HttpServletRequest request) {
		return "/student";
	}
	@RequestMapping("/Admin")
	public String LoginA(HttpServletRequest request) {
		return "/Admin";
	}
	  @RequestMapping("/Logout")
	    public String logout(HttpSession session) {
	    	session.invalidate();
	    	return "/Login";
	    }
}
